Virtual printer with asynchronous job and device status

ABSTRACT

A flexible and extensible virtual printer architecture is provided. According to one aspect of the present invention final status associated with a presentation job (e.g., a fax job or a print job) is made available to an output server. One or more host processing threads or processes are spawned for each new presentation job received by the output server. Then, the presentation job is submitted to a presentation device for which the presentation job is destined by way of an instance of a wrapper process that is capable of communicating bi-directionally with the presentation device. After submitting the presentation job, a host job status thread or process waits for status pertaining to the presentation job. Ultimately, a final status associated with the presentation job is received by the wrapper process and the wrapper process reports the final status to the host job status thread or process. According to another aspect of the present invention, job and device status may be reported asynchronously. One or more host processing threads or processes are spawned for each new presentation job received. A first presentation job is submitted to a presentation device for which the presentation job is destined by way of a first instance of a wrapper process that communicates bi-directionally with the presentation device. Subsequently, a second presentation job is submitted to the presentation device by way of a second instance of the wrapper process. A first and second job status thread or process wait for status pertaining to the first and second presentation jobs, respectively. A final status associated with the second presentation job is received by the second instance of the wrapper before a final status associated with the first presentation job is received by the first instance of the wrapper. Then, the second instance of the wrapper process reports the final status to the second job status thread or process.

COPYRIGHT NOTICE

Contained herein is material that is subject to copyright protection.The copyright owner has no objection to the facsimile reproduction ofthe patent disclosure by any person as it appears in the Patent andTrademark Office patent files or records, but otherwise reserves allrights to the copyright whatsoever.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The invention relates generally to driving heterogeneous devices from anoutput server. More particularly, the invention relates to a flexiblemechanism which allows jobs containing formatted data, such as imagedata, to be submitted to arbitrary devices.

2. Description of the Related Art

Print servers, such as the IBM® InfoPrint® Manager, traditionallyprovide for central management of a printing environment. A simplifiedprinting scenario in a local area network (LAN) environment will brieflybe described with reference to FIG. 1. In this example, a personalcomputer workstation 100 is coupled to a print server 120 via a LAN 110.The print server 120 includes a spooler 130 for controlling the spoolingof data files and presentation services 140 for generating appropriatecommands to drive an attached printer. The print server 120 may alsoinclude other components that are not shown for performing basic tasks,such as monitoring and configuring attached printers, and providingprint job management. At any rate, when the PC workstation 100 has datato print, it sends print data to the print server 120. Among thefunctions typically provided by a print server is the conversion of thedata stream containing the print data to a data stream supported by theprinter to which the print data is destined. In this example, the printserver 120 is coupled to a first printer 150 and a second printer 160.The two printers 150 and 160 may each respond to different data streams.For instance, the first printer 150 may accept the Intelligent PrinterData Stream (IPDS) and the second printer 160 may accept PostScript.Therefore, the print server 120 must provide a means for convertingbetween the various input data streams that may be received and the twodata streams accepted by the printers 150 and 160. While in thissimplified example only two types of printers have been shown, it shouldbe appreciated that real world printing environments may include manydifferent types of printers.

Increasingly, this is the case in professional printing environments,such as commercial and production printing environments which arebecoming more and more diverse. While print servers typically supportdiverse printing environments, such support is costly in terms of thedevelopment effort required to modify the print server software inexisting inflexible architectures. For example, in order to accommodatea new data stream, it is common to add a new complex printer driver tothe print server. In existing print server architectures, these printdrivers must typically be developed from scratch to incorporate the richset of features that users have come to expect. This rewriting of codeis required because typically the print server's capabilities andtransforms are coded for a particular type of data stream and for aparticular path through the print server. Also impacting the developmentefforts, is the inherent difficulty in manipulating the complex datastreams that are received by print servers and transforming them intoequally complex data streams required by printers. In view of theforegoing, it is desirable to provide a flexible and extensiblearchitecture that allows support for new output devices to be addedeasily and inexpensively.

Another problem associated with existing print servers is the limitedrange of output devices supported. It is often desirable to present ordeliver information in a form other than printer hard copy. Therefore,it would be advantageous to provide a mechanism to support output todestinations including fax and email, for example.

Prior art output servers also have other significant limitations whichperplex end users. Fax servers report the fact that they havesuccessfully transmitted a fax job. However, there is no indication ofthe success or failure of the job being received and/or handled at thedestination. Often, unwary end users are surprised to discover thattheir “successful” job was not successful at the receiving end. Similarlimitations exist in printer control protocols that only report thesuccess or failure of a print job being converted to image. Therefore,it is desirable to provide a mechanism by which additional job anddevice status may be provided to the end user.

BRIEF SUMMARY OF THE INVENTION

A flexible and extensible virtual printer architecture is described.According to one aspect of the present invention final status associatedwith a presentation job is made available to an output server. One ormore host processing threads or processes are spawned for each newpresentation job received by the output server. Then, the presentationjob is submitted to a presentation device for which the presentation jobis destined by way of an instance of a wrapper process that is capableof communicating bi-directionally with the presentation device. Aftersubmitting the presentation job, a host job status thread or processwaits for status pertaining to the presentation job. Ultimately, a finalstatus associated with the presentation job is received by the wrapperprocess and the wrapper process reports the final status to the host jobstatus thread or process. Advantageously, in this manner, a mechanism issupplied by which additional job and device status may be provided tothe end user.

According to another aspect of the present invention, a method ofrecovering from presentation job errors is provided. A data streamgenerator establishes a bi-directional communication link between itselfand an intermediate process. The data stream generator transmits a datastream comprising a presentation job to the intermediate process by wayof the bi-directional communication link. Status information is receivedby the data stream generator, including an indication of a device errorif the presentation device was unable to complete the presentation job.Subsequently, the presentation job may be restarted at the point offailure by the data stream generator.

According to yet another aspect of the present invention, job and devicestatus may be reported asynchronously. One or more host processingthreads or processes are spawned for each new presentation job received.A first presentation job is submitted to a presentation device for whichthe presentation job is destined by way of a first instance of a wrapperprocess that communicates bi-directionally with the presentation device.Subsequently, a second presentation job is submitted to the presentationdevice by way of a second instance of the wrapper process. A first andsecond job status thread or process wait for status pertaining to thefirst and second presentation jobs, respectively. A final statusassociated with the second presentation job is received by the secondinstance of the wrapper before a final status associated with the firstpresentation job is received by the first instance of the wrapper. Then,the second instance of the wrapper process reports the final status tothe second job status thread or process.

Other features of the present invention will be apparent from theaccompanying drawings and from the detailed description which follows.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The present invention is illustrated by way of example, and not by wayof limitation, in the figures of the accompanying drawings and in whichlike reference numerals refer to similar elements and in which:

FIG. 1 is a simplified block diagram depicting a local area network(LAN) printing environment.

FIG. 2 is a block diagram illustrating an exemplary softwarearchitecture according to one embodiment of the present invention

FIG. 3 is a block diagram illustrating exemplary data flow through thesoftware architecture according to one embodiment of the presentinvention

FIG. 4 is an example of a typical computer system upon which oneembodiment of the present invention or components thereof may beimplemented.

FIG. 5 is a flow diagram illustrating high level output processingaccording to one embodiment of the present invention.

FIG. 6 is a flow diagram illustrating output server thread or processprocessing according to one embodiment of the present invention.

FIG. 7 is a flow diagram illustrating virtual printer processingaccording to one embodiment of the present invention.

FIG. 8 is a flow diagram illustrating status task processing accordingto one embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

A flexible and extensible virtual printer architecture is described.According to various embodiments of the present invention, a virtualprinter is interposed between an output server and a heterogeneous groupof presentation devices, such as printers, fax servers, email servers,pagers, televisions, file viewers, copiers, and other devices, which mayor may not natively support the data stream provided by the outputserver, thereby providing a common interface to the heterogeneous groupof presentation devices. Advantageously, in this manner, the outputserver is not burdened with having to handle device-specific informationfor each presentation device. Rather, the output server and the virtualprinter may communicate via a single, well-defined presentation devicedata stream (also referred to as a presentation device controlprotocol). Therefore, the addition of new presentation devices behindthe virtual printer has a relatively trivial impact upon the outputserver compared with the effect of such a change in prior printingenvironment architectures. Additionally, as will be explained in moredetail below, by removing the device dependencies from the output serverand placing them further down stream, future enhancements to the outputserver, such as new transforms or other new data stream manipulations,are automatically inherited by presentation devices that are supportedby the virtual printer architecture.

According to one aspect of the present invention, the virtual printermay present itself to the output server as an Intelligent Printer DataStream (IPDS) device while converting the input data stream to otherformats that are natively supported by presentation devices. In thismanner, the virtual printer acts as an IPDS proxy for the presentationdevices thereby allowing them to take advantage of the rich set ofcapabilities and data stream transforms provided by IPDS.

According to another aspect of the present invention, a logical channelis provided for conveying device status and various levels of job statusthrough the virtual printer and back to the output server. Additionally,a mechanism is provided for reporting asynchronous job and devicestatus. In this manner, the end user may be provided with job and devicestatus information that is not communicated to the end user by existingprinting solutions.

In the following description, for the purposes of explanation, numerousspecific details are set forth in order to provide a thoroughunderstanding of the present invention. It will be apparent, however, toone skilled in the art that the present invention may be practicedwithout some of these specific details. In other instances, well-knownstructures and devices are shown in block diagram form.

The present invention includes various steps, which will be describedbelow. The steps of the present invention may be performed by hardwarecomponents or may be embodied in machine-executable instructions, whichmay be used to cause a general-purpose or special-purpose processorprogrammed with the instructions to perform the steps. Alternatively,the steps may be performed by a combination of hardware and software.

The present invention may be provided as a computer program productwhich may include a machine-readable medium having stored thereoninstructions which may be used to program a computer (or otherelectronic devices) to perform a process according to the presentinvention. The machine-readable medium may include, but is not limitedto, floppy diskettes, optical disks, CD-ROMs, and magneto-optical disks,ROMs, RAMs, EPROMs, EEPROMs, magnet or optical cards, or other type ofmedia/machine-readable medium suitable for storing electronicinstructions. Moreover, the present invention may also be downloaded asa computer program product, wherein the program may be transferred froma remote computer to a requesting computer by way of data signalsembodied in a carrier wave or other propagation medium via acommunication link (e.g., a modem or network connection).

For convenience, embodiments of the present invention will be describedwith reference to a particular data stream, i.e., the IntelligentPrinter Data Stream (IPDS). In alternative embodiments, alternative datastreams may be employed, such as PostScript, Hewlett Packard PrinterControl Language (PCL), Hewlett Packard Graphics Language (HPGL),Printer Job Language (PJL), or Apple Talk Printer Access Protocol (PAP).However, preferably, the data stream employed is both architected andbi-directional. By “architected” what is meant is, a standardized set ofcontrols transmitted with raw data which specifies how the data is to bepresented. By “bi-directional,” what is meant is a synchronizationmechanism is provided between the host (e.g., a printer server or otherdata stream generator) and the server (e.g., a printer or other outputdevice) allowing them to synchronize at various points in the datastream. For example, the host and server may be able to synchronize at acommand or page-level according to an acknowledgment protocol whichprovides for the exchange of host initiated queries and server replyinformation. Also, while embodiments of the present invention will bedescribed with reference to a particular transport level protocol (alsoreferred to as a carrying protocol or a communication protocol), i.e.,transmission control protocol (TCP), other protocols that provide anerror free, bi-directional byte stream between two endpoints may beemployed, such as Xerox Network Systems (XNS), S/370 Parallel ChannelHost Attachment, or the like. Finally, while only a limited number ofpresentation devices are specifically referred to herein, such asprinters, fax servers, email servers, and pagers, the method andapparatus described herein are equally applicable to other destinationsand presentation devices that are capable producing character shapes,graphics pictures, images, or other symbols on a physical medium, suchas paper, a display device, or a disk. Additionally, the method andapparatus described herein are applicable to destinations and/orpresentation devices that are capable of retransmission, such as a basestation for satellite or cellular communications or a paging system, forexample.

An Exemplary Software Architecture

FIG. 2 illustrates an exemplary software architecture according to oneembodiment of the present invention. Before describing the novelsoftware architecture, it may be useful to summarize a few of the manyadvantages and features. One feature of the present embodiment, is theability of the architecture to retain content while gaining runtimeefficiencies. For example, processing that is typically performed byprinter drivers, i.e., the generation of device dependent data andpresentation controls, is pushed down stream to a point at which thedata stream is very simple and therefore more easily transformed to adevice dependent format. Additionally, by decoupling device dependenciesfrom the output server in the manner described below, efficiencies arealso achieved during development, as less code is required in order toprovide support for new devices. Another important characteristic to bepointed out in the software architecture of the present embodiment isthe simple, well-defined interfaces between components of thearchitecture. Of course, various other features and advantages will berecognized by those of ordinary skill in the art from the followingdescription.

According to the embodiment depicted, a presentation environmentarchitecture includes the following components: an output server 200, avirtual printer 215, one or more wrapper functions 230, 231, one or morepresentation devices 234, 235, a status database application programminginterface (API) 240, and a status database 245. In various embodiments,more or less components may be employed by combining or excluding one ormore of the above-referenced components or adding additional components.Importantly, the components may reside on the same computer system or bedistributed across several different computer systems on a local areanetwork, for example. FIG. 2 illustrates one possible distribution ofcomponents in which the dashed lines represent a physical separationbetween components. When the components are physically separated,bi-directional communication links may be established and maintainedamong the components via a TCP/IP, sockets-based interface, for example.

In one embodiment, the output server 200 may comprise a current orfuture release of InfoPrint Manager, Print Services Facility (PSF),e.g., PSF/MVS or PSF/400, or other IPDS enabled print server. In thepresent example, the output server 200 receives presentation jobs (e.g.,print jobs, fax jobs, and other output jobs) and user-specified jobattributes from a workstation, for example, and returns job and/ordevice status. The output server 200 may support outputting the datareceived to a plurality of heterogeneous presentation devices 234, 235by wrapping, in an object container, destination control information(e.g., an email address for sending the presentation job to an emailserver, a phone number for sending the presentation job to a fax server)provided in the user-specified job attributes. The object container maythen proceed transparently through the output server processing andcontinue down stream where it may be used at the appropriate pointduring the processing of the presentation job in the virtual printer 215or wrappers 230, 231. Those skilled in the art will recognize thewrapper as a generalization of a print mechanism which no longer needsto be physically contained within a printer. Importantly, forms of theverbs “print” and “output” in the context of this application, referbroadly to the act of communicating a data stream containing data thatis destined for a presentation device or something capable ofretransmitting the job to a presentation device. These definitionsinclude, but are not limited to, the traditional meaning of print, e.g.,sending data to a printer in order to produce character shapes, graphicspictures, images, or other symbols with ink, toner, or the like on aphysical medium, such as paper. According to these definitions, data maybe said to be “printed” or “output” to a fax server or a pager, forexample.

At any rate, returning to the embodiment depicted, the output server 200includes a spooler 205 and presentation services 211. The presentationservices 211 may include one or more drivers 210 configured to generatecommands suitable for driving various presentation devices, one of whichis configured to interface with the virtual printer 215.

In the preferred embodiment, the presentation device control protocolexchanged between the output server 200 and the virtual printer 215 isthe Intelligent Printer Data Stream (IPDS). IPDS is an architected,bi-directional printer data stream that contains both data and controlsdefining how the data is to be presented. Additionally, the IPDSarchitecture provides an extensive acknowledgment protocol at the datastream level which provides for exchange of query-reply information andallows the return of detailed exception information. IPDS data streamsare independent of the carrying communications protocol. This allows thetransmission of the same data stream to presentation devices attached tochannels, controllers, local area networks, and any other type ofnetworking link that supports the transparent transmission of data. IPDStransfers data and controls through commands that describe thepresentation of data and provide for dynamic management of residentfonts and of downloaded resources, such as overlays, page segments, andloaded fonts. Additionally, IPDS commands allow control of devicefunctions such as duplexing, media-bin selection, and output finishing.Further background and information regarding the IPDS architecture maybe found in a publication entitled, “Intelligent Printer Data StreamReference,” Order Number S544-3417, published March 1996, which isavailable from IBM Printing Systems Company of Boulder, Colo.

Importantly, while this embodiment is described with reference to aoutput server supplying a printer data stream, such as IPDS, to thevirtual printer 215, the present invention is not limited to receipt ofa printer data stream from any particular type of device. In alternativeembodiments, the data stream may be received directly or indirectly froma workstation or other data stream generator or may be read from ascripted file, for example.

In the embodiment depicted, the virtual printer 215 includes anattachment layer 220 and one or more formatters 225. The attachmentlayer 220 and one or more of the drivers 210 establish a bi-directionalcommunication link between the output server 200 and the virtual printer215 through which communication may occur. Typically, the output server200 will provide logical pages of arbitrarily complex source dataembedded in a data stream and corresponding user-specified jobattributes (potentially for each logical page). The source data mayinclude, for example, text, image, graphics and/or other embeddedobjects, such as sound or video. At any rate, responsive to the datastream, the attachment layer 220 may provide the output server 200 withsuch things as page counters (e.g., received page count, committed pagecount), status and other error conditions relating to the processing ofthe data stream by the virtual printer 215. As will be described indetail below, embodiments of the virtual printer architecture mayprovide various levels of job status, thereby allowing the output server200 to recover from certain data stream and device errors, for example.

Preferably, to leverage existing code, the attachment layer 220 mayreceive an architected, bi-directional printer data stream from anexisting printer driver. In one embodiment, the virtual printer 215 iscapable of acting like a particular printer, such as one of manydifferent IPDS printers (e.g., InfoPrint 60 or InfoPrint 4000), byperforming the bi-directional communications as the particular printerwould. In this manner, the virtual printer 215 may act as a proxy forpresentation devices that may or may not natively support the datastream received by the virtual printer 215. Ultimately, the outputserver 200 (or other data stream generator) is essentially made tobelieve that it is communicating directly with a printer rather than anintermediate entity behind which a heterogeneous group of presentationdevices may reside.

The attachment layer 220 employs one or more formatters 225, which mayoperate in parallel, to reduce the data stream received from the outputserver 200 to a simple format. The formatters 225 receive the datastream from the attachment layer 220 and convert the data stream to awidely supported, simple format, such as a bit map, text, a frame ofvideo, or one of many other well-defined interchange formats, therebyfacilitating subsequent re-packaging in a device-dependent manner by theappropriate wrapper function 230, 231. In embodiments employingpresentation devices that accept imaged data, at least one of theformatters 225 may comprise a rasterizer. In this case, if therasterized image is bi-level it can be compressed, for example, viaInternational Telecommunications Union-TelecommunicationsStandardization Sector (ITU-TSS) T.6 Group 4 two dimensional codingstandard for facsimile. Other compression algorithms or formats may beused. For example, the rasterizer may convert to other image formats toaccomodate color. Then, the resulting image data and associated controlsmay be packaged by the wrapper function, one presentation unit at a timeto build a job for submission to a presentation device. The presentationunit is a block of data whose size is device dependent. For example, thepresentation unit for a pager might be a screen full of text, while thepresentation unit for a printer may be one or two sides of a sheet. Inother embodiments, which may communicate with text-based presentationdevices such as pagers, at least one of the formatters 225 may comprisea text extractor. Numerous alternative formatters are possible dependingupon the characteristics of the presentation devices supported.

The wrapper functions 230, 231 abstract the device dependent detailsfrom the virtual printer 215. In general, wrapper functions receive datain a device independent format, transform it into a device-specificformat, and drive the appropriate presentation device. Importantly,depending upon the particular implementation wrappers may be defined fora particular type of presentation device (e.g., a InfoPrint 60 IPDSprinter, a Lotus Notes email server), for presentation device families(e.g., fax servers, email servers, PostScript printers, PCL printers,IPDS printers), or for various groupings of presentation devicefamilies. In one embodiment, the wrapper functions 230, 231 include adevice independent portion and a device dependent portion (not shown).The device independent portion of the wrapper receives control objectcontainers and data from the formatter in a fixed format and isessentially the same for each wrapper function 230, 231. However, thedevice dependent portion has knowledge of the data stream supported bythe presentation devices with which it is associated, knowledge of howto apply the control information to the formatted data, knowledge of howto interpret and utilize the destination control information supplied tothe output server 200, knowledge of the job ticket format required, ifany, for job submission to its presentation devices, etc. The wrapperfunctions 230, 231 essentially receive device independent material,e.g., the formatted data from the formatters 225 and control informationthat describes the presentation of the data, and makes it devicedependent based upon the control information and/or characteristics ofthe targeted presentation device. For example, the device dependentportion of the wrapper function may parse the destination controlinformation and residual control information from the data stream andperform image operations, such as scaling, cropping and resolutionmodification, to accommodate various features and limitations of thetargeted presentation device. Alternatively, depending on thespecificity of the wrapper, it may be able to make the formatted datadevice dependent without reference to the destination controlinformation. Importantly, as a result of device dependencies only beingencoded in a portion of the wrapper and in the user specifieddestination control information, virtual printer support for newpresentation devices may be accomplished by simply providing new wrapperfunctions and support for any new user-specified job attributes to becontained in the object containers.

Referring now to the status database application programming interface(API) 240, as will be described further below, it tracks job and devicestatus for the output server 200. The status database API 240 may runindependent of the output server 200 as a daemon process or otherindependent processing thread or process and may employ a statusdatabase 245 to store the job status information (e.g., stacked pagecount) and device status information (e.g., device failures, such aspaper jam, out of toner, etc.). In one embodiment, communicationsbetween the status database API 240, the output server 200, and otherprocesses may be accomplished via remote procedure calls.

Data Flow Through an Exemplary Software Architecture

FIG. 3 is a block diagram illustrating exemplary data flow through asoftware architecture similar to that of FIG. 2 according to oneembodiment of the present invention. In this example, the data path fromthe user's workstation to a presentation device 380 includes an outputserver 325, presentation services 335, a virtual printer process 340, arasterizer 355, a wrapper function 365, and finally the presentationdevice 380. The presentation job received in the present example is aPostScript fax job 305 comprising text, image, and graphic data. ThePostScript job 305 is also accompanied by several user-specified jobattributes 310. In general, user-specified job attributes may becategorized as either destination device control information orformatting information. In the present example, the fax number, thenumber of retries, and the paper color are examples of destinationdevice control information, while impositioning and duplexing optionsare examples of formatting information. Typically, the user-specifiedjob attributes may be provided as command line options to the outputserver 325 by the end user or they may represent user selections on agraphical user interface. In any event, the output server 325 transformsthe PostScript job data into logical pages of an architected,device-independent common data format 315 for interchanging variousinput data streams, in this example, the common data format 315 is MixedObject Document Content Architecture (MODCA). The user-specified jobattributes are also transformed to the common data format 320. Forexample, a MODCA object container may be employed to carry thedestination device control information.

The input 330 to the presentation services 335 includes pages of thecommon data format, their corresponding object containers, andformatting information. The presentation services 335 includetransformations for applying the formatting information to the pages andfor transforming the common data format to a data stream 336, such asIPDS. Importantly, the input data stream received by the output server325 may be any of a number of formats, including but not limited to:PDF, PostScript, TIFF, GIF, JPEG, PCL, SAP, and ASCII. The output datastream 336 produced by the presentation services is equally flexible.

The virtual printer 340, parses the data stream 336 received from thepresentation services 335, feeds destination device control information345 extracted from the object containers to the wrapper function 365,and feeds the IPDS logical pages 350 to the rasterizer 355. Therasterizer 355 transforms the IPDS data stream 350 to a bitmaprepresentation. Preferably, the bitmap representation is a compressedimage format, such as that produced by ITU-TSS T.4 Group 3 twodimensional coding standard for facsimile (also referred to as G3) orITU-TSS T.6 Group 4 two dimensional coding standard for facsimile (alsoreferred to as G4).

The wrapper function 365 receives both destination device controlinformation 345 and bitmaps 360 and presents device-specific controlinformation 370, such as a fax job ticket, and a device-specific datastream 375 to the presentation device 380.

It should be appreciated that the above-described software architectureextends the functionality of the output server 325, including thetransformations to and from MODCA, and the formatting capabilities ofIPDS, to virtually any presentation device. For example, thisarchitecture provides the ability to send N-up facsimiles.Advantageously, any new features added to either MODCA or IPDS areautomatically inherited by presentation devices that are supported bythe architecture.

An Exemplary Computer Architecture

Having briefly described one embodiment of the virtual printerarchitecture and how data flows through such an architecture, a computersystem 400 representing an exemplary workstation, host, or server inwhich features of the present invention may be implemented will now bedescribed with reference to FIG. 4. Computer system 400 comprises a busor other communication means 401 for communicating information, and aprocessing means such as processor 402 coupled with bus 401 forprocessing information. Computer system 400 further comprises a randomaccess memory (RAM) or other dynamic storage device 404 (referred to asmain memory), coupled to bus 401 for storing information andinstructions to be executed by processor 402. Main memory 404 also maybe used for storing temporary variables or other intermediateinformation during execution of instructions by processor 402. Computersystem 400 also comprises a read only memory (ROM) and/or other staticstorage device 406 coupled to bus 401 for storing static information andinstructions for processor 402.

A data storage device 407 such as a magnetic disk or optical disc andits corresponding drive may also be coupled to computer system 400 forstoring information and instructions. Computer system 400 can also becoupled via bus 401 to a display device 421, such as a cathode ray tube(CRT) or Liquid Crystal Display (LCD), for displaying information to anend user. For example, graphical and/or textual depictions/indicationsof job and device status, previews of presentation jobs, and other datatypes and information may be presented to the end user on the displaydevice 421. Typically, an alphanumeric input device 422, includingalphanumeric and other keys, may be coupled to bus 401 for communicatinginformation and/or command selections to processor 402. Another type ofuser input device is cursor control 423, such as a mouse, a trackball,or cursor direction keys for communicating direction information andcommand selections to processor 402 and for controlling cursor movementon display 421.

A communication device 425 is also coupled to bus 401. Depending uponthe particular presentation environment implementation, thecommunication device 425 may include a modem, a network interface card,or other well known interface devices, such as those used for couplingto Ethernet, token ring, or other types of physical attachment forpurposes of providing a communication link to support a local or widearea network, for example. In any event, in this manner, the computersystem 400 may be coupled to a number of clients and/or servers via aconventional network infrastructure, such as a company's Intranet and/orthe Internet, for example.

High Level Output Processing

FIG. 5 is a flow diagram illustrating high level output processingaccording to one embodiment of the present invention. At step 510,initialization processing is performed including establishment of abi-directional communications link between the output server 200 and theattachment layer 220 of the virtual printer 215. Additionally, thearchitectural features of the data stream that are supported by thevirtual printer 215 may be reported to the output server 200.Initialization may also include the addition of presentation devicerecords to the status database 245. At step 520, a presentation job isreceived by the output server 200. One or more threads or processes arespawned, at step 530, to handle applying the transformations andformatting described above. At step 540, the data stream incorporatingthe transforms and formatting applied in step 530 is transferred to thevirtual printer 215. The virtual printer 215 simplifies the data streamby performing data reduction processing at step 550. The formatted datastream produced by the virtual printer 215 is then transferred to theappropriate wrapper function at step 560. At step 570, the wrapperfunction generates device dependent control information and a devicedependent data stream for the presentation device to which thepresentation job is destined. Having appropriately formatted thepresentation job for the presentation device, at step 580, the job maybe submitted to the presentation device. At step 590, the wrapperfunction reports the final status of the presentation job and/or thepresentation device's status to the output server.

An Exemplary Output Server Thread or Process

FIG. 6 is a flow diagram illustrating output server thread or processprocessing according to one embodiment of the present invention.According to the embodiment depicted, the output server thread orprocess processing generally breaks down into a job initializationstage, a data stream transformation stage, a job submission stage, andpost job submission processing. The job initialization stage isrepresented by steps 610 and 620, the data stream transformation stageis represented by step 630 through step 650, the job submission stage isrepresented by step 660, and the post job submission processing includessteps 670 through 690. Briefly, according to one feature of the presentembodiment, a status thread or process awaits the final status of thepresentation job. According to one embodiment, the wait mechanism isimplemented the status thread or process polling a status databaseinterface. Alternatively, the status thread or process may await acallback from the status database interface which is made when thestatus database receives an indication of the presentation job's statusfrom the wrapper function, for example. In one embodiment, the stepsdescribed below may be performed under the control of a programmedprocessor, such as processor 202. However, in alternative embodiments,the steps may be fully or partially implemented by programmable orhardcoded logic.

A new unique job ID is assigned to the presentation job at step 610. Thestatus database is notified of the new presentation job, at step 620, byway of a remote procedure call to an interface to the status database,for example. Therefore, the virtual printer 215 and/or the wrapperfunctions 230, 231 may report the presentation job's status to an entitythat resides outside the bi-directional channel established between theoutput server 200 and the presentation device. Importantly, in thismanner, the independent job status recording means provides anon-blocking approach for reporting asynchronous job and device statusto the output server 200.

At step 630, the data stream received by the output server 200 istransformed into a common data format. In this manner, rather thancoding user-specified formatting options for each of many possible inputdata stream formats, such formatting need only be coded for the commondata format. At step 640, the user-specified formatting options, such asimpositioning, are applied to the common data format. After applying theformatting options, at step 650, the common data format is transformedto the data stream format that is output by the output server 200. Thepresentation job is then submitted, at step 660, by providing the outputdata stream to the virtual printer 215. After the job is submitted, atleast one output server thread or process, referred to herein as thestatus thread or process, waits for the final job status to be reported.

At step 670, it is determined whether or not the presentation job'sstatus has been received. If so, processing continues with step 680;otherwise, the status thread or process continues to wait. Importantly,while the embodiment illustrated appears to be a polling loop, asindicated above, status may be provided by way of a callback functionthat is called by the status database interface after it receives thepresentation job's final status. According to this embodiment, when thepresentation job's status is finally received job queues are updated andthe originating workstation is notified of the status by steps 680 and690, respectively.

Virtual Printer Processing

FIG. 7 is a flow diagram illustrating virtual printer processingaccording to one embodiment of the present invention. At step 710, thevirtual printer 215 receives a data stream representing a presentationjob and the job's user-specified attributes. At step 720, the attachmentlayer 220 parses the received data stream and separates the destinationcontrol information from the data stream. The attachment layer 220provides the destination control information to the wrapper associatedwith target presentation device and may, if appropriate, examine thedestination control information, for example, to effect additionalstatus reporting from the attachment layer 220 to the output server 200.Before submitting the data stream to the formatter 225, at step 730, theattachment layer 220 determines whether the data stream can becut-through to the wrapper function or if formatting needs to beperformed. If the data stream is already in a native format recognizedby the target presentation device, processing continues with step 750;otherwise processing continues with step 740. At step 740, the formatter225, such as a rasterizer, reduces the source data embedded in thereceived data stream to a widely supported device independent format. Inthis manner, the data steam is simplified in preparation for performingdevice-dependent processing in the wrapper.

At step 750, a wrapper of the type necessary for communicating to thetarget presentation device is instantiated. The wrapper takes deviceindependent data and produces presentation unit-level device-specificdata and device-specific control information in the form of a datastream that can be submitted to the presentation device. For example, anemail wrapper function may wrap bitmap images (from a rasterizer, forexample) in a page description language (PDL), such as PDF, beforesubmitting the data to the email server. Similarly, a fax wrapper maywrap bitmap images in TIFF for submission to a fax server. Importantly,as indicated above, a single wrapper function may support variousgroupings of presentation device families, therefore, a single wrappermay support both email and fax presentation devices. To distinguishbetween the two types of input, such a wrapper may examine thedestination control information, for example. A phone number specifiedas the destination would be indicative of input destined to a fax or faxserver, while an email address would be indicative of data destined foran email server.

At step 760, the presentation job is submitted to the appropriatepresentation device(s) in the form of a device dependent data stream. Incases where bi-directional communication may be established with thepresentation device, the wrapper may wait for a final job status to bereturned from the presentation device(s) at step 770. Otherwise, thewrapper may itself determine the final job status upon successfullytransmitting the job to the presentation device. When the job status isdetermined, it is reported to the status database interface, at step780. Importantly, in order to facilitate error recovery processing anddelivery of jobs to multiple destinations, the wrapper may spool thedata to a file.

Status Processing

FIG. 8 is a flow diagram illustrating status processing according to oneembodiment of the present invention. In the embodiment depicted, adatabase request is received at step 805. In this example, the requestmay be one of four types of requests: a new status record request, astatus notification, a status inquiry, and a clear request.

A request for a new status record is typically made by the output server200 to establish a new device or job record. A status notification istypically made by a wrapper function, but may also be made by one of thevirtual printer components or the presentation services 211.Importantly, any component with knowledge of the presentation job ID cancommunicate with the status database interface to report errors, therebypermitting the output server 200 to restart the job from the point offailure.

Status inquiries are typically associated with the output server 200 aspresentation status threads or processes poll for the status of theirpresentation jobs. Finally, a clear request is usually the result of anoutput server call to delete a record that no longer needs to betracked.

At step 810, the type of request is determined. If the request is for anew status record, processing continues with step 815. If the request isa status notification, processing continues with step 825. If therequest is a status inquiry, the processing continues with step 835.Otherwise, if the request is a clear request, processing continues withstep 845.

At step 815, depending upon the type of record requested, a new job ordevice record is created and initialized. At step 820, the newly createdrecord is stored in the status database.

At step 825, the job or device record relating to the statusnotification (as determined by the job/device ID) is located in thestatus database. The record corresponding to the request is updated atstep 830.

At step 835, the job or device record relating to the status inquiry (asdetermined by the job/device ID) is located in the status database. Therecord corresponding to the request is retrieved and the status isreturned to the caller at step 840. As mentioned above, while theembodiment illustrated illustrates a mechanism by which status may bepolled, it may be desirable to provide a mechanism by which interestedprocesses may be notified when a status change occurs. According to oneembodiment, therefore, the status database interface may use asubscription list, for example, and perform a callback to the interestedprocesses as status notifications are received.

At step 845, the job or device record relating to the statusnotification (as determined by the job/device ID) is located in thestatus database. The record corresponding to the request is deleted atstep 850.

In the foregoing specification, the invention has been described withreference to specific embodiments thereof. It will, however, be evidentthat various modifications and changes may be made thereto withoutdeparting from the broader spirit and scope of the invention. Thespecification and drawings are, accordingly, to be regarded in anillustrative rather than a restrictive sense.

1. A method of providing a presentation job status to an output server,the method comprising: the output server receiving the presentation job;the output server spawning a host process associated with the receivedpresentation job to handle the presentation job; the host processspawning a wrapper process; transferring the presentation job to thewrapper process; submitting the presentation job to a presentationdevice; and the wrapper process reporting a status of the presentationjob at the presentation device to the output server, wherein a status ofa subsequent presentation job is reported to the output server prior tothe status of the presentation job and the subsequent presentation jobis received by the output server after the presentation job.
 2. Themethod of claim 1 wherein the presentation job is selected from a listcomprising a printer job and a fax job.
 3. The method of claim 1 furtherincluding performing data reduction processing prior to transferring thepresentation job to the wrapper process.
 4. The method of claim 1wherein the wrapper process is capable of bi-directionally communicatingwith the presentation device.
 5. The method of claim 1 further includingperforming presentation device-dependent formatting on at least oneportion of data associated with the presentation job prior to submittingthe presentation job to the presentation device.
 6. The method of claim5 wherein the device-dependent formatting is performed by the wrapperprocess.
 7. The method of claim 1 wherein each of the processes isimplemented as a thread.
 8. The method of claim 1 further includingspawning a host job status process to wait for a status pertaining tothe presentation job.
 9. The method of claim 8 wherein the host jobstatus process is implemented as a thread.
 10. The method of claim 8wherein the host job status is received prior to the wrapper processreporting the status of the presentation job to the output server. 11.The method of claim 8 wherein the host job status process is spawned bythe host process.
 12. The method of claim 1 wherein the presentation jobincludes data related to an item selected from a list comprising text,image, graphic data, embedded objects, sound, and video.
 13. The methodof claim 1 wherein the wrapper process determines whether the status ofthe presentation job reported to the output server is a final status ofthe presentation job.
 14. The method of claim 1 wherein the presentationjob status indicates a stacked page count.
 15. The method of claim 1wherein the wrapper process further performs one or more of thefollowing: receiving data in a device-independent format; transformingdata into a device-specific format; and drive the presentation device.16. The method of claim 15 wherein the device-specific format isspecific to the presentation device.
 17. The method of claim 15 whereinthe device-specific format transformation includes an operation selectedfrom a group comprising image scaling, image cropping, and resolutionmodification.
 18. The method of claim 1 wherein the submittedpresentation job to the presentation device is in a device-specificformat that is supported by the presentation device.
 19. The method ofclaim 1 wherein the reporting to the output server is provided to thehost process.
 20. The method of claim 1 wherein each wrapper processfunction is performed by a distinct instance of the wrapper process. 21.A computer system for providing a presentation job status to an outputserver, the computer system comprising: the output server to receive thepresentation job; a virtual presentation device implemented as asoftware facility on the output server, the virtual presentation deviceincluding a host process associated with the received presentation jobto handle the presentation job and a wrapper process to determine afinal status of the presentation job; a reporting facility implementedwithin the wrapper process to report the final status of thepresentation job to the output server, wherein a final status of asubsequent presentation job is reported to the output server prior tothe final status of the presentation job and the subsequent presentationjob is received by the output server after the presentation job.
 22. Thecomputer system of claim 21 wherein the presentation job is selectedfrom a list comprising a printer job and a fax job.
 23. The computersystem of claim 21 wherein the wrapper process is capable ofbi-directionally communicating with the presentation device.
 24. Thecomputer system of claim 21 wherein each of the processes is implementedas a thread.
 25. The computer system of claim 21 wherein the hostprocess spawns a host job status process to wait for a status pertainingto the presentation job.
 26. The computer system of claim 21 wherein thewrapper process further performs one or more of the following: receivingdata in a device-independent format; transforming data into adevice-specific format; and drive the presentation device.
 27. Acomputer system for providing a presentation job status to an outputserver, the computer system comprising: means for the output serverreceiving the presentation job; means for the output server spawning ahost process associated with the received presentation job to handle thepresentation job; means for the host process spawning a wrapper process;means for transferring the presentation job to the wrapper process;means for submitting the presentation job to a presentation device; andmeans for the wrapper process reporting a status of the presentation jobat the presentation device to the output server, wherein a status of asubsequent presentation job is reported to the output server prior tothe status of the presentation job and the subsequent presentation jobis received by the output server after the presentation job.
 28. Thecomputer system of claim 27 further including means for performingpresentation device-dependent formatting on at least one portion of dataassociated with the presentation job prior to submitting thepresentation job to the presentation device.
 29. An article ofmanufacture for providing a presentation job status to an output server,the article comprising: a machine readable medium that providesinstructions that, if executed by a machine, will cause the machine toperform operations including: receiving at the output server thepresentation job; spawning at the output server a host processassociated with the received presentation job to handle the presentationjob; the host process spawning a wrapper process; transferring thepresentation job to the wrapper process; submitting the presentation jobto a presentation device; and the wrapper process reporting a status ofthe presentation job at the presentation device to the output server,wherein a status of a subsequent presentation job is reported to theoutput server prior to the status of the presentation job and thesubsequent presentation job is received by the output server after thepresentation job.
 30. The article of claim 29 wherein the operationsfurther include performing data reduction processing prior totransferring the presentation job to the wrapper process.
 31. Thearticle of claim 29 wherein the operations further include performingpresentation device-dependent formatting on at least one portion of dataassociated with the presentation job prior to submitting thepresentation job to the presentation device.